/*
 * Copyright 2025 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
 */

package dev.icerock.moko.resources.desc

import dev.icerock.moko.resources.PluralsResource
import dev.icerock.moko.resources.utils.OhosResourceUtils

actual class PluralFormattedStringDesc actual constructor(
    val pluralsRes: PluralsResource,
    val number: Int,
    val args: List<Any>
) : StringDesc {
    override fun toString(): String {
        return pluralsRes.getFormatString(number.toUInt(), args)?:throw Exception()
//        return OhosResourceUtils.getPlural(pluralsRes.resourceName, number.toUInt(), *args.toTypedArray())?:throw Exception()
    }
}